<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>订单列表</title>
	<link rel="stylesheet" href="/css/modules.css" type="text/css"	media="screen" />
	<link rel="stylesheet" href="/css/modules1.css" type="text/css"	media="screen" />
	<link rel="stylesheet" href="/css/jquery-ui.css" type="text/css"	media="screen" />
	<link rel="stylesheet" href="/css/jquery.wysiwyg.css" type="text/css"	media="screen" />
	<style type="text/css">
		label{
			display:inline;
		}
	</style>
	<script type='text/javascript' src="/js/jquery-1.4.2.min.js"></script>	
	<script type='text/javascript' src="/js/jquery.js"></script>
	<script type='text/javascript' src="/js/jquery-ui.js"></script>
	<script type='text/javascript' src="/js/jquery.wysiwyg.js"></script>
	<script type='text/javascript' src="/js/custom.js"></script>
  </head>
  
  <body style="background-color:transparent">
	<!--  Goods_list header -->
	<div style="padding:10px;">
  		<h2 class="jquery_tab_title">${type.name }列表
  			<span style="float:right;">
  				<input type="text" class="input-medium" value="请输入货物编号/名称/类型" />
  				<input type="button" value="Search" class="button" />
  				<a href="##">高级查询</a>
  			</span>
  		</h2>
  	</div>
  	<!--  Goods_list  -->
  	<div>
  	<table width="100%" cellspacing="0" cellpadding="0">
  		<tr>
  			<th class="th_first"><input type="checkbox" /></th>
  			<th>单据日期</th>
  			<th>单据编号</th>
  			<th>收货人</th>
  			<th>销售金额</th>
  			<th>折后金额</th>
  			<th>收款金额</th>
  			<th>状态</th>
  			<th>说明</th>
  			<th>操作</th>
  		</tr>
  		<s:iterator value="orderList">
    	<tr>
    		<td class="td_first"><input type="checkbox" /></td>
    		<td><s:date name="date" format="yyyy-MM-dd" />&nbsp;</td>
    		<td><a href="/OrderAction!view.action?id=${id }">${code }&nbsp;</a></td>
    		<td>${outlets.name }&nbsp;</td>
    		<td>${amount }&nbsp;</td>
    		<td>${amount }&nbsp;</td>
    		<td>${amount }&nbsp;</td>
    		<td>
    			<s:if test="status=='未发货'">
    				<font color="red">${status }</font>
    			</s:if><s:else>
    				<font color="green">${status }</font>
    			</s:else>
    			&nbsp;
    		</td>
    		<td>${remark }&nbsp;</td>
    		<td>
    		<s:if test="status=='已发货'">
    				<a href="/OrderAction!simpleUpdate.action?orderid=${id }">确认收货</a>/
    				
    			</s:if><s:else>
    				
    			</s:else>
    			<a href="/OrderAction!del.action?orderid=${id}">删除</a>
    		</td>
    	</tr>
    	</s:iterator>
  		
  	</table>
  	<div style="text-align:right;padding:20px;">${pagination }</div>
    </div>
  </body>
</html>
